<style tyle="text/css">
  .modal-lg {
    width: 70%;
  }
</style>
<div class="modal-header">
  <h4 class="modal-title">用户侧接口</h4>
</div>
<div class="modal-body">
  <form name="form" class="form-horizontal ng-pristine ng-valid-required">
    <div class="form-group">
      <label class="col-lg-3 control-label">接口地址:</label>
      <div class="col-lg-6">
        <input type="text" class="form-control" ng-model="obj.url" ng-disabled="true">
      </div>
    </div>
    <div class="form-group">
      <label class="col-lg-3 control-label">过滤类型:</label>
      <div class="col-lg-6">
        <ui-select ng-model="obj.logintype" theme="bootstrap">
          <ui-select-match placeholder="选择类型..">{{$select.selected.label}}</ui-select-match>
          <ui-select-choices repeat="item in login_type | filter: $select.search">
            <span ng-bind-html="item.label | highlight: $select.search"></span>
          </ui-select-choices>
        </ui-select>
      </div>
    </div>
    <div class="form-group">
      <label class="col-lg-3 control-label">状态:</label>
      <div class="col-lg-6">
        <label class="i-switch m-t-xs m-r">
          <input type="checkbox" ng-true-value="'0'" ng-false-value="'1'" ng-model="obj.state">
          <i></i>
        </label>
      </div>
    </div>
    <div class="form-group">
      <label class="col-lg-3 control-label">说明:</label>
      <div class="col-lg-6">
        <input type="text" class="form-control" ng-model="obj.name">
      </div>
    </div>
    <div class="form-group">
      <label class="col-lg-3 control-label">备注:</label>
      <div class="col-lg-6">
        <textarea class="form-control" rows="3" ng-model="obj.remarks"></textarea>
      </div>
    </div>
  </form>
</div>

<div class="modal-footer">
  <button class="btn btn-success" ng-click="save()">保存</button>
  <button class="btn btn-danger" ng-click="cancel()">关闭</button>
</div>

